
//
// 110605 - AH - Created.
//

package org.soekrat.gui.swing.chat;

import java.awt.BorderLayout;
import java.awt.Container;

import org.soekrat.engine.Soekrat2Engine;
import org.soekrat.gui.swing.chat.objectconversation.ConvPanel;

/**
 * <p>
 *   Chat only desktop application for visitor end user only. 
 * </p>
 * @author Arne Halvorsen (AH)
 */
@SuppressWarnings("serial")
public final class Chat extends DesktopSoekrat 
{ 
  /**
   * <p>
   *   Constructor.
   * </p>
   * @param engine Engine interfaced.
   */
  public Chat(Soekrat2Engine engine) 
  {
    super(engine, "Soekrat Chat - "+engine.getConversationTitle());
  }

  @Override
  protected void buildGui() 
  {
    Container c=getContentPane();
    c.setLayout(new BorderLayout());
    
    ConvPanel cp=new ConvPanel(getEngine());
    c.add(cp, BorderLayout.CENTER);
    
    pack();
  }
  
  
  
}
